<?php


class Record extends Eloquent  {



	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'Record';

	public $timestamps = false;

	function getNumOfUse()
	{
		return self::where("name","=","numOfuse")->first();
	}

	function updateNumOfUse()
	{
		$recordNumOfUse=$this->getNumOfUse();
		$num = $recordNumOfUse->value + 1;

		self::where("name","=","numOfuse")->update(array('value' => $num));

	





	}
	
	

}
